package com.netx.ut.lib.hibernate;
import java.util.Calendar;
import java.sql.Timestamp;

public abstract class EntityInstance {

	private Timestamp _timeCreated;
	private Timestamp _timeUpdated;

	protected EntityInstance() {
		Timestamp t = new Timestamp(Calendar.getInstance().getTimeInMillis());
		setTimeCreated(t);
		setTimeUpdated(t);
	}
	
	public Timestamp getTimeCreated() {
		return _timeCreated;
	}
	
	public void setTimeCreated(Timestamp value) {
		_timeCreated = value;
	}

	public Timestamp getTimeUpdated() {
		return _timeUpdated;
	}
	
	public void setTimeUpdated(Timestamp value) {
		_timeUpdated = value;
	}
}
